import Vue from 'vue'
import Router from 'vue-router'
import Detail from '../components/Enterprise/Detail.vue'
import HelloWorld from '@/components/HelloWorld'
import Edit from '../components/Enterprise/Edit.vue'
import AddEnterprise from '../components/Enterprise/AddEnterprise.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/workes',
      component: () => import('@/components/Workes/WorkesInformation')

    }, {
      path: '/workesAdd',
      component: () => import('@/components/Workes/WorkesInformationAdd')

    }, {
      path: '/workesLook',
      component: () => import('@/components/Workes/WorkesInformationLook')

    }, {
      path: '/workesUpdata',
      component: () => import('@/components/Workes/WorkesInformationUpdata')

    },
    {
      path: '/addenterprise',
      name: 'AddEnterprise',
      component: () => import('@/components/Enterprise/AddEnterprise')
    },
    {
      path: '/detail',
      name: 'Detail',
      component: Detail
    },
    {
      path: '/edit',
      name: 'Edit',
      component: Edit
    }
    ,
    {
      path: '/about',
      name: 'About',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "about" */ '../components/Enterprise/About.vue')
    },
  ]
})
